home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 25
/
CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso
/
CUCD
/
WWW
/
http
/
www.wirenet.co.uk
/
files
/
thor25_arexx.lha
/
Edge
/
Style.edge
< prev
next >
Wrap
Text File
|
1996-01-13
|
715b
|
40 lines
/* Style.edge
** $VER: Style.edge 1.1 (27.12.96)
** Original script by Troels Walsted Hansen
** Purpose: Apply style to word.
**
*/
options results
parse arg stylechar
/* needs Edge functions */
p = address() || ' ' || show('P',,)
portname = pos('EDGE',p)
if portname > 0 then portname = word(substr(p,portname),1)
else
do
say 'No Edge port found!'
exit 10
end
address(portname)
RequestString TITLE '"0-Bold 1-Italic 2-Reverse 3-Underline"'
select
when(result = 0) then stylechar = '*'
when(result = 1) then stylechar = '/'
when(result = 2) then stylechar = '#'
when(result = 3) then stylechar = '_'
otherwise exit
end
Previous WORD
'TEXT' stylechar
'Position' EOW
'Cursor' RIGHT 1
TEXT stylechar